// ==UserScript==
// @name         db.no
// @namespace    db.no
// @description  Trims down db.no
// @include      http://*.dagbladet.no/*
// ==/UserScript==


remove_by_id("header");
remove_by_id("toolbox");
remove_by_id("topp-ad");

divs = document.getElementsByTagName("div");

for( i=0; i<divs.length; i++ ){
  d = divs.item(i);
  class = d.getAttribute("class");
  id = d.getAttribute("id");

  if( class == "grid-u mod-66 first" ){
    d.parentNode.parentNode.removeChild(d.parentNode);
    i--;
  }
  
}

function remove_by_id(id){
  
  d = document.getElementById(id);
  
  if(d)
    d.parentNode.removeChild( d );
  
}
